home *** CD-ROM | disk | FTP | other *** search
/ SPACE 2 / SPACE - Library 2 - Volume 1.iso / utility / 1a / general / basic.qrf next >
Encoding:
Text File  |  1985-05-29  |  21.9 KB  |  661 lines

  1.  
  2.  
  3.              ATARI 520ST--BASIC QUICK REFERENCE (Nov. 1985)--Page 1
  4.  
  5.  
  6.  
  7.                Compiled by Alice Barney, (703) 978-9376, NOVATARI
  8.  
  9.    1.  VARIABLE TYPES:
  10.             A%  Integer
  11.                   (holds numbers between -32768 and 32767)
  12.             B!  Real (Single Precision--Default Type)
  13.             C#  Double Precision Numbers. Ex. C#=3.33333333D+3
  14.             D$  String Variable (Combine with +, as D$=E$+".")
  15.                 Note: A string variable <= 255 bytes
  16.                       String arrays are supported
  17.                       Arrays may have three dimensions.
  18.  
  19.    PURPOSE  CMD                   SYNTAX 
  20.  
  21.    MATH     X = ABS(<numeric expression>) is pos. or 0
  22.  
  23.    STRING   I% = ASC(<string expression>)
  24.             This gives ASCII value of first character in a string.
  25.  
  26.    MATH     X! = ATN(<numeric expression>)
  27.             This gives the angle in radians, between -PI/2 and PI/2.
  28.             See TAN function (opposite).
  29.  
  30.    BASIC    AUTO [<starting line number>] [,<increment>]
  31.             This generates a line number after [Return] until turned
  32.             off by a [Control] [G].  EX. AUTO 50, 25 generates 50, 75,...
  33.             **75 means line 75 exists--keep it with empty [Return].
  34.  
  35.    FILE     BLOAD <filespec>[,<address>]
  36.             This can load arrays, screen images or subroutines.
  37.             If address left out, uses same address as in BSAVE.
  38.             Ex:  110 BLOAD "ARRAY",23
  39.  
  40.    TEST     BREAK [<list of line numbers>]
  41.             This prints out program line, and results, and pauses.
  42.             This is turned off by UNBREAK or STOP or END.
  43.  
  44.    FILE     BSAVE <filespec>,<address>,<length>
  45.             This saves part of memory to a file.
  46.  
  47.    CONTROL  CALL <numeric variable>[(<parameter list>)]
  48.             This invokes a machine language routine in memory.
  49.             Example:  600 CALL PGPNT(I%,A$,X)
  50.  
  51.    CONTROL  CHAIN <filespec>[,<line descriptor>][,ALL]
  52.             CHAIN MERGE <filespec>[,<line descr.>]
  53.                         [,DELETE<line descriptor list>]
  54.             This loads and passes control to another program, which
  55.             can be merged with the current program.
  56.             COMMON variables are passed to the new/modified program.
  57.  
  58.    STRING   A$ = CHR$(<numeric expression>)
  59.             This gives ASCII character with the decimal value MOD 256.
  60.  
  61.  
  62.  
  63.  
  64.  
  65.  
  66.  
  67.  
  68.  
  69.              ATARI 520ST--BASIC QUICK REFERENCE (Nov. 1985)--Page 2
  70.  
  71.  
  72.    MATH     I% = CINT(<numeric expression>)
  73.             This rounds to the nearest integer, in range -32768 to 32767.
  74.  
  75.    GRAPHIC  CIRCLE <horizontal center,vertical center,radius>
  76.                            [<,start angle,end angle>]
  77.             This draws circles and arcs for angles given as degrees
  78.             times 10.  60 degrees is 600; 360 degrees is 3600.
  79.             Circles are drawn in current plot color (COLOR parm 3).
  80.  
  81.    BASIC    CLEAR   This erases all data but keeps program.
  82.  
  83.    GEM      CLEARW <numeric expression>  Clears a window:
  84.             0 = EDIT Window; 1 = LIST; 2 = OUTPUT; 3 = Command Window
  85.  
  86.    FILE     CLOSE [#]<file number>[,<file number>]...
  87.             CLOSE without any file number closes all open disk files.
  88.  
  89.    GEM      CLOSEW <window number> Closes one BASIC window.
  90.  
  91.    GRAPHIC  COLOR [<text color,fill color,line color,style,index>]
  92.             Text color is 0-15 (LOW), 0-3 (MED) and 0-1 (High Res.)
  93.             Colors for fill (background) and line have same limits.
  94.             Style is Hollow, Pattern or Hatch.
  95.             Index is the pattern type for the style.
  96.  
  97.    CONTROL  COMMON <variable>,<variable>...  (see CHAIN)
  98.  
  99.    CONTROL  CONT      Continue after BREAK. (Or use GOTO)
  100.  
  101.    MATH     X = COS(<numeric expression>)
  102.             The angle must be given in radians = degrees*(PI/180),
  103.             where PI = 3.14159  (etc.)
  104.  
  105.    FILE     CVD(<8-byte string>)  (See MKD,MKI,MKS)
  106.             This converts byte string to a double precision number,
  107.             normally input from FIELD in buffer of a random file.
  108.  
  109.    FILE     CVI(<2-byte string>) converts to an integer.
  110.  
  111.    FILE     CVS(<4-byte string>)
  112.             This converts to Single Precision real number.
  113.  
  114.    BASIC    DATA <constant>,<constant>...
  115.             This holds values so READ statement assigns to variables.
  116.  
  117.    BASIC    DEF FN<function name>[(parameter,parameter>)] = <definition>
  118.             Ex:       DEF FNA(A) = A*2+5
  119.             The definition must be one program line.
  120.             Arrays are not supported.
  121.  
  122.    GEM      DEF SEG [<numeric expression>]  EX: DEF SEG X
  123.             If X > 0, 1 byte is PEEK or POKE size, with offset X
  124.             If X = 0 and is not double precision, 2 bytes PEEK size.
  125.             If X = 0 and is double precision, 4 bytes PEEK size.
  126.  
  127.  
  128.  
  129.  
  130.  
  131.  
  132.  
  133.  
  134.  
  135.              ATARI 520ST--BASIC QUICK REFERENCE (Nov. 1985)--Page 3
  136.  
  137.  
  138.    BASIC    DEFDBL <letter>[-<letter>]
  139.             This declares a range of letters for double precision numbers.
  140.  
  141.    BASIC    DEFINT <letter>[-<letter>]  defines integers
  142.  
  143.    BASIC    DEFSNG <letter>[-<letter>]  defines real numbers
  144.             These are single precision (default type) numbers.
  145.  
  146.    STRING   DEFSTR <letter>[-<letter>] defines strings.
  147.  
  148.    BASIC    DELETE <line number list> erases BASIC line numbers
  149.  
  150.    ARRAYS   DIM <array name>(<subscript>,<subscript>)
  151.                   [,<array name>(<subscript>)]
  152.             This defines dimensions of arrays.  Max dimensions = 15.
  153.             Lower bound of each dimension is 0 or 1--see OPTION BASE.
  154.             Arrays can be 1/3 of memory but below 32K.
  155.  
  156.    FILE     DIR [<disk drive:>][<filename,filetype>]
  157.             This lists file names on screen or printer--with wild cards.
  158.  
  159.    BASIC    EDIT <line number> or ED
  160.             This invokes ST BASIC editor beginning at line given, or 0.
  161.  
  162.    GRAPH    ELLIPSE <horiz. center,vert. center,horiz. radius,
  163.                            vert. radius>[<start angle,end angle>]
  164.             This draws ellipses and elliptical arcs.
  165.  
  166.    CONTROL  END  (Stops program, closes files)
  167.  
  168.    FILE     X = EOF(<file number>)  Note: EOF = -1 (true)
  169.  
  170.    FILE     ERA [<disk drive:>]<filename>  erases matching files.
  171.  
  172.    BASIC    ERASE <array name>,<array name>
  173.             This erases array contents so you can use it again.
  174.  
  175.    CONTROL  X = ERL (error line); Y = ERR (error code)
  176.                 These apply after an ERROR condition.
  177.  
  178.    CONTROL  ERROR <numeric expression> (Sets error number.)
  179.  
  180.    MATH     X = EXP(<numeric expression>)   (expr. < 43.6682)
  181.             Returns the exponent of e, which is 2.7182
  182.  
  183.    FILE     FIELD #<file number>,<field width> AS <string var.>,
  184.                         <,field width> AS <string variable>
  185.             This allocates space in random file buffers.
  186.             Buffer fields must be filled by LSET or RSET, or by input.
  187.             Do not use INPUT or LET for FIELD buffer variables.
  188.  
  189.    GRAPHIC  FILL <numeric X expr.>,<numeric Y expr.>
  190.             This fills drawn shape, starting at X,Y with color
  191.             or pattern set by most recent COLOR statement.
  192.  
  193.  
  194.  
  195.  
  196.  
  197.  
  198.  
  199.  
  200.  
  201.              ATARI 520ST--BASIC QUICK REFERENCE (Nov. 1985)--Page 4
  202.  
  203.  
  204.    MATH     X = FIX(<numeric expression>)
  205.             This truncates a real number decimal part to get the integer.
  206.             The real number must be between -32768 and 32767.
  207.  
  208.    MATH     X = FLOAT(<integer expression>)
  209.             This converts an integer to the format of a real number.
  210.  
  211.    DEBUG    FOLLOW <variable>[,<variable>]   (See UNFOLLOW)
  212.             This detects changes in the variables.  When one changes,
  213.             the variable name, value and line number are printed.
  214.  
  215.    CONTROL  FOR <counter variable> = <numeric expression>
  216.                       TO  <numeric expression> [STEP <num. expr.>]
  217.             This loops until NEXT is reached.
  218.  
  219.    CONTROL  X = FRE(<dummy argument>)  Ex: ? FRE(0)
  220.  
  221.    GEM      FULLW <numeric expression>
  222.             Sets BASIC window to full size: 0=Edit;1=List;2=Output;3=CMD
  223.  
  224.    GEM      GEMSYS(AES Op Codes)  allows access to mouse
  225.             Ex:  10 REM PRINT MOUSE X,Y POS. & BUTTON STATES
  226.                  20 A#=GB
  227.                  30 CONTROL=PEEK(A#):GLOBAL=PEEK(A#+4)
  228.                  50 GINTIN=PEEK(A#+8):GINTOUT=PEEK(A#+12)
  229.                  70 ADDRIN=PEEK(A#+16):ADDROUT=PEEK(A#+20):GEMSYS(79)
  230.                 100 PRINT PEEK(GINTOUT+2):? PEEK(GINTOUT+4)
  231.                 120 PRINT PEEK(GINTOUT+6):? PEEK(GINTOUT+8)
  232.  
  233.    FILE     GET [#]<file number>[,<record number>]
  234.             This reads a record from a random disk file.
  235.  
  236.    CONTROL  GOSUB <line number> or GOSUB <label name>
  237.  
  238.    CONTROL  GOTO  <line number> or GOTO  <label name>
  239.  
  240.    GRAPHIC  GOTOXY <Column Position>,<Row Position>
  241.             This controls the output Cursor position in the
  242.             Output Window.
  243.  
  244.    BASIC    X = HEX$(numeric expression)
  245.             This returns the result, in HEX.
  246.             EX: X=HEX$(15):? X GIVES 'F'
  247.  
  248.    CONTROL  IF <logical expression> THEN <statement> <:statement>
  249.             [ELSE <statement> <:statement>
  250.             This may include imbedded FOR...NEXT or WHILE...WEND loop.
  251.  
  252.    I/O      X = INP(<port number>)    Gets byte from input port
  253.             To get port status use neg like INP(-3)--0=n/avail;-1=avail
  254.                  Port 0 = PRINTER   (Parallel Port)
  255.                       1 = AUX       (RS-232)
  256.                       2 = CONSOLE   (Screen)
  257.                       3 = MIDI   (Musical Instr. Dig. Interface)
  258.                       4 = KEYBOARD
  259.  
  260.  
  261.  
  262.  
  263.  
  264.  
  265.  
  266.  
  267.              ATARI 520ST--BASIC QUICK REFERENCE (Nov. 1985)--Page 5
  268.  
  269.  
  270.  
  271.    I/O      INPUT [;] [<prompt string><; or ,>] <variable>,<variable>
  272.             If ';' used, get '? ' before reply.  ',' omits both.
  273.             If no quoted prompt or null string used, '? ' is printed.
  274.  
  275.    I/O      INPUT#<file number>,<variable>, <variable>
  276.             This inputs data from a disk file, bypassing leading spaces,
  277.             tabs, carr.returns, and line feeds.  After data found, it is
  278.             ended by space, carr.return, line feed, comma, or char.#255.
  279.             --Quoted strings are ended by quote or EOF or char #255.
  280.             --Unquoted strings are ended by carr.rtn, line-feed, comma,EOF
  281.               or 255 char, and drop trailing spaces.
  282.  
  283.    I/O      X = INPUT$(<number of char.>[,[#]<file number>])
  284.             This returns requested number of characters from disk or
  285.             keyboard.
  286.  
  287.    I/O      X = INSTR([<starting point>,]
  288.              <target string expression>, <pattern string>)
  289.             This searches for imbedded string and gives pos. or 0.
  290.  
  291.    MATH     X = INT(numeric expression)
  292.             This converts from floating to integer number form.
  293.  
  294.    FILE     KILL<string expression>
  295.             Deletes disk file -- works inside BASIC program.
  296.  
  297.    STRING   X$ = LEFT$(<target string>,<number of char.>)
  298.             This extracts leftmost characters from a string.
  299.  
  300.    STRING   Z = LEN(<string expression>)  Gives string length
  301.  
  302.    BASIC    [LET] <variable>=<expression>  [LET is optional]
  303.             This assigns a value to a variable, converting as needed.
  304.  
  305.    I/O      LINE INPUT[;] [<prompt>[, or ;]]<string variable>
  306.             This requests keyboard string variable input ended by <RETURN>
  307.             or <Line Feed>.
  308.  
  309.    I/O      LINE INPUT#<file number>,<string variable>
  310.             This inputs up to 254 byte disk file string ended by CARR.RTN.
  311.             A line feed preceding CARR.RTN. is input--does not end line.
  312.  
  313.    GRAPHIC  LINEF <X1,Y1,X2,Y2>   draws line from X1,Y1 to X2,Y2
  314.  
  315.    BASIC    LIST [<line descriptor, list>]  Ex. LIST 10-30,70-90
  316.             LIST - 30 lists lines up to 30. [CONTROL] [G] stops LIST.
  317.  
  318.    BASIC    LLIST [<line descriptor list>] lists program to printer.
  319.             WIDTH LPRINT <integer expression> sets printer line width.
  320.  
  321.    FILE     LOAD <file name>  Loads new program, clearing any previous.
  322.  
  323.    FILE     X = LOC(<file number>) Gives current record # in Random file.
  324.             In a sequential file, gives #bytes read or written.
  325.  
  326.  
  327.  
  328.  
  329.  
  330.  
  331.  
  332.  
  333.              ATARI 520ST--BASIC QUICK REFERENCE (Nov. 1985)--Page 6
  334.  
  335.  
  336.  
  337.    FILE     X = LOF(<file number>) Gives file length in bytes.
  338.  
  339.    MATH     X = LOG(<positive numeric expression>)
  340.             Gives natural log (to base e) of number > 0
  341.  
  342.    MATH     X = LOG10(<pos. numeric expression>)  Gives base 10 logarith.
  343.  
  344.    I/O      LPOS(X) Gives approx. current print column for printer.
  345.  
  346.    BASIC    LPRINT (<list of expressions>]      or
  347.             LPRINT USING <format string expr.>;<list of expressions>)
  348.  
  349.    I/O      LSET<string variable>=<string expression>
  350.             Moves string into existing string variable, left jusified.
  351.             For random file buffer, use MKD$,MKI$ or MKS$ for numbers.
  352.  
  353.    I/O      MERGE <filename>    (into existing BASIC program in memory)
  354.  
  355.    STRING   X$ = MID$(<string expression>,<starting point>,[length>])
  356.             This returns a segment of a string.
  357.  
  358.    FILE     X$ = MKD$(<numeric double precision expression>)
  359.             This converts number to an 8-byte string for file buffer.
  360.  
  361.    FILE     X$ = MKI$(<integer expression>) returns two-byte string.
  362.  
  363.    FILE     X$ = MKS$(<numeric single precision expression>)  -- 4 bytes
  364.  
  365.    FILE     NAME <old file name> AS <new file name> -- renames disk file
  366.  
  367.    BASIC    NEW [<new program name>]  clears memory, may name new program
  368.  
  369.    LOOP     NEXT [<counter>][,<counter>]
  370.  
  371.    STRING   X$ = OCT$(<numeric integer expression>)
  372.  
  373.    BASIC    OLD <filename>  clears memory & loads program into memory
  374.  
  375.    CONTROL  ON <numerical expr.> GOTO <line number list>
  376.  
  377.    CONTROL  ON <numerical expr.> GOSUB <label list>
  378.  
  379.    CONTROL  ON ERROR GOTO <line descriptor>  line = 0 to show error num.
  380.  
  381.    FILE     OPEN <mode I,O or R>,[#]<file numb>,<filename>[<rcd length>]
  382.             Random file record length is optional--default is 128 bytes.
  383.  
  384.    GEM      OPENW <window number>  opens one ST BASIC window.
  385.             Windows: 0=EDIT, 1=LIST, 2=OUTPUT, 3=COMMAND
  386.  
  387.    ARRAY    OPTION BASE <1 or 0>  Sets base subscript values of array.
  388.             (Default base is 0.  If 0, array has N+1 elements.)
  389.  
  390.    I/O      OUT <integer port number>,<integer expression>
  391.  
  392.  
  393.  
  394.  
  395.  
  396.  
  397.  
  398.  
  399.              ATARI 520ST--BASIC QUICK REFERENCE (Nov. 1985)--Page 7
  400.  
  401.  
  402.             Sends data byte to port: 0=Pr,1=RS232,2=Scr,3=MIDI,4=Keybd
  403.  
  404.    GRAPHIC  PCIRCLE <XC,YC,R>[<,start angle,end angle>]
  405.             This draws solid circles and arcs at center XC,YC,Radius R
  406.             Angles are in degrees times 10, from right, counter-
  407.             clockwise.  The FILL color is parm 2 of COLOR statement.
  408.  
  409.    GEM      X = PEEK(<memory location>)  Returns memory contents
  410.             (Controlled by DEF SEG--see explanation)
  411.  
  412.    GRAPHIC  PELLIPSE <XC,YC,XR,YR<[<,start angle,end angle>]
  413.             This draws filled ellipses and elliptical pie shapes.
  414.  
  415.    GEM      POKE <location to poke>,<data to poke>
  416.             Stores data in memory, as governed by DEF SEG.
  417.             This could crash the system.
  418.  
  419.    I/O      X = POS(<dummy argument>)  Returns current cursor position.
  420.             This is on screen (or printer?)
  421.  
  422.    I/O      PRINT [<expression><, or ;><expression>[<, or ;>]]
  423.             This prints data to the ST BASIC GEM Output Window.
  424.             PRINT can be abbreviated with a question mark '?'.
  425.  
  426.    I/O      PRINT# <file number>,<expression>,<expression>
  427.             This prints data to a disk file in same format as screen.
  428.             It can be abbreviated as '?#' instead of 'PRINT#'.
  429.  
  430.    I/0      PRINT USING <string expr>;<list of expr.>
  431.             PRINT# <file number>,USING<"string expr.">;<list of expr>
  432.             These can be abbreviated with '?' in place of 'PRINT'.
  433.             The print "mask" characters include: !, \chars\, &, #, '.',
  434.             +, -, **, $$, **$, ',', _, and ^^^^.
  435.  
  436.    I/O      PUT [#]<file number>,<record number>
  437.             This outputs a random file record from a buffer.
  438.  
  439.    CONTROL  QUIT   Leaves ST BASIC and returns to GEM command level
  440.  
  441.    MATH     RANDOMIZE [<numeric expression>] makes new border print.
  442.  
  443.    I/0      READ <variable>,<variable>
  444.             Assigns DATA statement values to variables.
  445.  
  446.    BASIC    REM THIS IS A REMARK  or ' THIS IS A REMARK
  447.  
  448.    BASIC    RENUM [<new first line>][,<starting line>][<increment>]
  449.             This renumbers BASIC program lines, via BASIC.WRK
  450.  
  451.    I/O      REPLACE [<filename>][,<line number list>]
  452.             Replaces old file name.
  453.  
  454.    GEM      RESET  puts outout window into graphics buffer.
  455.             (Opposite of OPENW <number>)
  456.  
  457.  
  458.  
  459.  
  460.  
  461.  
  462.  
  463.  
  464.  
  465.              ATARI 520ST--BASIC QUICK REFERENCE (Nov. 1985)--Page 8
  466.  
  467.  
  468.    I/O      RESTORE <line descriptor>  Allows rereading of DATA.
  469.  
  470.    CONTROL  RESUME (0) or RESUME NEXT or RESUME <line descriptor>
  471.             Returns from error routine.
  472.  
  473.    CONTROL  RETURN    Returns from subroutine after GOSUB entry.
  474.  
  475.    STRING   X$ = RIGHT$(<target string> , <number of char>)
  476.             This returns right end of string.
  477.  
  478.    MATH     X = RND[(<numeric expression>)]  Gives random number.
  479.             RND(0) repeats random number. RND(Y) gives next number.
  480.             RND(-Y) reseeds random number and gives first value.
  481.  
  482.    FILE     RSET <string variable>=<string expression>
  483.             This right justifies string for fielded random file buffer.
  484.  
  485.    BASIC    RUN <,line descriptor> or RUN <filename>
  486.  
  487.    BASIC    SAVE [<filename>], [<line descriptor list>] Saves program
  488.  
  489.    MATH     X = SGN(<numeric expression>)  Returns sign of a number:
  490.             POS = 1; NEG = -1; and ZERO = 0.
  491.  
  492.    MATH     X = SIN(<numeric expression>) where argument is radians.
  493.             rad = degrees * pi/180, where pi = 3.141593.  Result is
  494.             a real number even when angle given as an integer.
  495.  
  496.    SOUND    SOUND VOICE, VOLUME, NOTE, OCTAVE, DURATION
  497.             Voice=channel 1-3. VOL=0-15. NOTE number=1-12. OCTAVE=1-8.
  498.             Duration=time in 1/50 sec.
  499.  
  500.    STRING   X$ = SPACE$(<numeric expression>)  returns up to 255 spaces
  501.  
  502.    PRINT    PRINT SPC(<numeric expression>)
  503.             This prints spaces, MOD the printer width if<256.
  504.             IF Num.Xpr. > 255, MOD 255.
  505.  
  506.    MATH     X = SQR(numeric expression)  Gives square root of pos. num.
  507.  
  508.    CONTROL  STEP or STEP <,line descr.) or STEP <filename>
  509.             This runs program one line at a time.
  510.  
  511.    CONTROL  STOP  Stops PGM, returns to BASIC Command GEM window.
  512.             Stops, leaving open files--use CONT or [Return] to continue.
  513.  
  514.    STRING   X$ = STR$(<numeric expression>)   (Oppos. of VAL)
  515.             This puts a number in a string as though printed.
  516.             Pos. numbers begin with SPACE--Neg. begin with '-'.
  517.  
  518.    STRING   X$ = STRING$(<num. expr>,<num or string expr>)
  519.             This gives a string of length arg-1, from arg-2.
  520.             Ex. ? STRING$(5,"*") prints '*****'. 'AAA' = STRING$(3,65)
  521.  
  522.    BASIC    SWAP <first variable>,<second variable>  trade values
  523.  
  524.  
  525.  
  526.  
  527.  
  528.  
  529.  
  530.  
  531.              ATARI 520ST--BASIC QUICK REFERENCE (Nov. 1985)--Page 9
  532.  
  533.  
  534.  
  535.    GEM      X = PEEK(SYSTAB+OFFSET)  (See page C-141)
  536.             SYSTAB + 0:    Resolution: 1 = HI, 2 = MED, 4 = LO
  537.                    +20:    Graphics Buffer if BUFFERED GRAPHICS enabled.
  538.                            --4 byte pointer to 32768 byte buffer
  539.                    +24:    GEMFLAG (0 = normal, 1 = off)
  540.                            --on required for MOUSE, SCREEN & KEYBOARD)
  541.  
  542.    CONTROL  SYSTEM   (Same as QUIT--closes files, returns to GEM)
  543.  
  544.    PRINT    PRINT TAB(<tab position>)  moves cursor to column given.
  545.             If WIDTH < <tab> <  256, MOD Width.
  546.             If <tab> > 256, MOD 256.
  547.  
  548.    MATH     X = TAN(<angle in radians>)
  549.             Radians = Degrees * 3.141593 / 180
  550.  
  551.    DEBUG    TRACE [<line descriptor list>]  --  Opp. is UNTRACE
  552.             This prints selected line number commands as they execute.
  553.             Ex. TRACE 20,40 does two lines; TRACE 20-40 does the range.
  554.  
  555.    DEBUG    TROFF [<line descriptor list>]
  556.             This cancels TRON all or partially.
  557.  
  558.    DEBUG    TRON [<line descriptor list>] prints line numbers only
  559.  
  560.    DEBUG    UNBREAK [<line descriptor list>]
  561.             This [selectively] cancels BREAK (STOP on line#) command.
  562.  
  563.    CONTROL  UNFOLLOW [<variable>],[<variable>]
  564.             This (partially) cancels FOLLOW
  565.  
  566.    CONTROL  UNTRACE [<line descriptor list>] cancels TRACE all or part.
  567.  
  568.    STRING   X = VAL(<digit string expression>) -- Converts to real num.
  569.             This scans strings like the INPUT# statement.  (Opp: STR$)
  570.  
  571.    CONTROL  X = VARPTR(<variable>) or = VARPTR(#<file number>)
  572.             This gives variable address, or gives addr. of file buffer
  573.             This could be used with BSAVE or BLOAD.
  574.  
  575.    GEM      VDISYS(<Dummy Argument>)
  576.             This gives access to VDI interface--see page C-156.
  577.  
  578.    I/O      WAIT <port number>,<integer expression>[,<integer expression>]
  579.             Waits (forever?) until bit pattern found--see page C-157
  580.  
  581.    SOUND    WAVE ENABLE, ENVELOPE, SHAPE, PERIOD, DELAY (5 num.expr)
  582.             ENABLE:   0 in bits 0-2 enable voice 1-3.
  583.                       0 in bits 3-5 places noise on voice 1-3.
  584.             ENVELOPE: 1 in bits 0-2 enables envelope for voices 1-3.
  585.             SHAPE:    Env. shape & cycle register--bits 0-3?
  586.             PERIOD:   Sets period of the envelope.
  587.             DELAY:    Sets time in 1/50 second incr.
  588.  
  589.  
  590.  
  591.  
  592.  
  593.  
  594.  
  595.  
  596.  
  597.              ATARI 520ST--BASIC QUICK REFERENCE (Nov. 1985)--Page 10
  598.  
  599.  
  600.    CONTROL  WEND   Signals the end of a WHILE/WEND loop.
  601.  
  602.    CONTROL  WHILE <logical expression> begins loop ended by WEND
  603.  
  604.    CONTROL  WIDTH [LPRINT] <integer expression>   -- default is 72 char
  605.             If printer width = 255, omits carriage return at line end.
  606.  
  607.    I/O      WRITE [<expression>],<expression>  outputs to screen line
  608.  
  609.    I/O      WRITE #[<expression>],<expression> outputs to sequen. file
  610.  
  611.  
  612.  
  613.  
  614.  
  615.  
  616.  
  617.  
  618.  
  619.  
  620.  
  621.  
  622.  
  623.  
  624.  
  625.  
  626.  
  627.  
  628.  
  629.  
  630.  
  631.  
  632.  
  633.  
  634.  
  635.  
  636.  
  637.  
  638.  
  639.  
  640.  
  641.  
  642.  
  643.  
  644.  
  645.  
  646.  
  647.  
  648.  
  649.  
  650.  
  651.  
  652.  
  653.  
  654.  
  655.  
  656.  
  657.  
  658.  
  659.  
  660.  
  661. aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa